<script>
    function refreshPage(){
			window.parent.document.location.reload();
		}
		//window.setInterval("autoTurnPage("+currPage+")",<?php echo $refresh_rate; ?>*1000);  
		window.setInterval("refreshPage()", 6*1000);
</script>

<?php
include_once ('../../global.php');
//$rd_id = 3;
$url='http://live.scoringchina.com/scoringchina/2021volvochinaopen/mobile/data/index-data.php?mt_id='.$mt_id.'&rd_id='.$rd_id;
$html= file_get_contents($url);

var_dump($html);

$myfile = fopen("index-r".$rd_id.".html", "w") or die("Unable to open file!");


fwrite($myfile, $html);
fclose($myfile);


echo  date("Y-m-d H:i:s",time());


?>